#include "verifycode.h"

VerifyCode::VerifyCode(QObject *parent)
    :QObject(parent)
{
    timer= new QTimer();
    timer->setInterval(300*1000);//间隔5分钟
    connect(timer,&QTimer::timeout,this,&VerifyCode::slot_reset);



}

void VerifyCode::slot_reset()
{
    qverifycode.clear();
    //valid=false;
    timer->stop();
}

